SpreadsheetGear 2017
CreateCommandPrint(ICollection<IPrintable>,Boolean,Boolean) Method






SpreadsheetGear.Commands Namespace > CommandManager Class > CreateCommandPrint Method : CreateCommandPrint(ICollection<IPrintable>,Boolean,Boolean) Method
Specifies a list of printable objects.
Specifies whether to do a print preview.
Specifies whether the print dialog should be displayed before printing.
Creates an instance of the default print command.
Syntax
'Declaration
 
Public Overloads Overridable Function CreateCommandPrint( _
   ByVal printables As System.Collections.Generic.ICollection(Of IPrintable), _
   ByVal printPreview As System.Boolean, _
   ByVal showPrintDialog As System.Boolean _
) As Command
'Usage
 
Dim instance As CommandManager
Dim printables As System.Collections.Generic.ICollection(Of IPrintable)
Dim printPreview As System.Boolean
Dim showPrintDialog As System.Boolean
Dim value As Command
 
value = instance.CreateCommandPrint(printables, printPreview, showPrintDialog)
public virtual Command CreateCommandPrint( 
   System.Collections.Generic.ICollection<IPrintable> printables,
   System.bool printPreview,
   System.bool showPrintDialog
)
public function CreateCommandPrint( 
    printables: System.Collections.Generic.ICollection;
    printPreview: System.Boolean;
    showPrintDialog: System.Boolean
): Command; virtual; 
public function CreateCommandPrint( 
   printables : System.Collections.Generic.ICollection,
   printPreview : System.boolean,
   showPrintDialog : System.boolean
) : Command;
public: virtual Command* CreateCommandPrint( 
   System.Collections.Generic.ICollection<IPrintable*>* printables,
   System.bool printPreview,
   System.bool showPrintDialog
) 
public:
virtual Command^ CreateCommandPrint( 
   System.Collections.Generic.ICollection<IPrintable^>^ printables,
   System.bool printPreview,
   System.bool showPrintDialog
) 

Parameters

printables
Specifies a list of printable objects.
printPreview
Specifies whether to do a print preview.
showPrintDialog
Specifies whether the print dialog should be displayed before printing.
Remarks
Override this method to provide a custom implementation of this command.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandManager Class
CommandManager Members
Overload List